package com.itheima.d7;

import com.itheima.d5.Student;

public class Test {
    int age;
    {
        System.out.println("实例代码块执行了~~");
        //用来给对象初始化值
        age  = 18;
        System.out.println("有人创建了对象："+this);
    }
    public Test(){
        System.out.println("无参数构造器被执行了~~");
    }
    public Test(String name){
        System.out.println("有参数构造器被执行了！！！");
    }
}
